{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <form class="layui-form" action="">
    <div class="layui-elem-quote  title-select"  >
        <p>数据汇总</p>
        <ul >
            <li>
                    <div class="layui-form-item">
                        <label class="layui-form-label">统计平台：</label>
                        <div class="layui-input-inline">
                            <select name="platform" class="mng" lay-filter="ct">
                                {if empty($platform) }<option value="" selected>请选择</option>{/if}
                                {foreach $platform_arr as $k=>$v}
                                <option value="{$v.id}" {if $platform == $v.id  } selected {/if}>{$v.platform_name}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>

            </li>
            <li>

                <div class="layui-form-pane"  >
                    <div class="layui-form-item">
                        <label class="layui-form-label">范围选择</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" placeholder="开始日" id="LAY_demorange_s" name="start_time" value="{$start_time}">
                        </div>
                        <div class="layui-input-inline">
                            <input class="layui-input" placeholder="截止日" id="LAY_demorange_e" name="end_time" value="{$end_time}">
                        </div>
                    </div>
                </div>

            </li>
            <li>
                <button class="layui-btn layui-btn-primary">搜索</button>
                <a href="" class="layui-btn layui-btn-primary" type="button">导出</a>
            </li>

        </ul>
    </div>
    </form>
    <div class="layui-tab layui-tab-brief">

        <div class="layui-tab-content">


            <div class="layui-tab-item layui-show">

                <ul class="row-hunt">
                    <li class="hunt">
                        <div class="hunt-1">登录用户人数</div>
                        {if empty($start_time)}
                        <div class="hunt-2"></div>
                        {else/}
                        <div class="hunt-2">{$start_time}~{$end_time}</div>
                        {/if}
                        <div class="hunt-3">{$data.login_user}</div>
                    </li>
                    <li class="hunt">
                        <div class="hunt-1">注册用户人数</div>
                        {if empty($start_time)}
                        <div class="hunt-2"></div>
                        {else/}
                        <div class="hunt-2">{$start_time}~{$end_time}</div>
                        {/if}
                        <div class="hunt-3">{$data.all_user_num}</div>
                    </li>
                    <li class="hunt">
                        <div class="hunt-1">用户阅读量</div>
                        {if empty($start_time)}
                        <div class="hunt-2"></div>
                        {else}
                        <div class="hunt-2">{$start_time}~{$end_time}</div>
                        {/if}
                        <div class="hunt-3">{$data.all_user_read}</div>
                    </li>
                    <li class="hunt">
                        <div class="hunt-1">用户评价量</div>
                        {if empty($start_time)}
                        <div class="hunt-2"></div>
                        {else}
                        <div class="hunt-2">{$start_time}~{$end_time}</div>
                        {/if}
                        <div class="hunt-3">{$data.all_user_comment}</div>
                    </li>
                    <li class="hunt">
                        <div class="hunt-1">视频播放量</div>
                        {if empty($start_time)}
                        <div class="hunt-2"></div>
                        {else}
                        <div class="hunt-2">{$start_time}~{$end_time}</div>
                        {/if}
                        <div class="hunt-3">{$data.video_play_time}</div>
                    </li>
                    <li class="hunt">
                        <div class="hunt-1">视频播放时长</div>
                        {if empty($start_time)}
                        <div class="hunt-2"></div>
                        {else}
                        <div class="hunt-2">{$start_time}~{$end_time}</div>
                        {/if}
                        <div class="hunt-3">{$data.video_play_time}</div>
                    </li>
                    <li class="hunt">
                        <div class="hunt-1">次日留存</div>
                        {if empty($start_time)}
                        <div class="hunt-2"></div>
                        {else}
                        <div class="hunt-2">{$start_time}~{$end_time}</div>
                        {/if}
                        <div class="hunt-3">{$data.user_exist_3}</div>
                    </li>
                    <li class="hunt">
                        <div class="hunt-1">7次留存</div>
                        {if empty($start_time)}
                        <div class="hunt-2"></div>
                        {else}
                        <div class="hunt-2">{$start_time}~{$end_time}</div>
                        {/if}
                        <div class="hunt-3">{$data.user_exist_7}</div>
                    </li>
                    <li class="hunt">
                        <div class="hunt-1">30日留存</div>
                        {if empty($start_time)}
                        <div class="hunt-2"></div>
                        {else}
                        <div class="hunt-2">{$start_time}~{$end_time}</div>
                        {/if}
                        <div class="hunt-3">{$data.user_exist_30}</div>
                    </li>

                </ul>


            </div>
        </div>
    </div>
</div>
<script>

</script>
{/block}